3.339 \(\int \frac{x^m \left (c+d x^2\right )}{\left (a+b x^2\right )^2} \, dx\)

Optimal. Leaf size=93 \[ \frac{x^{m+1} (a d (m+1)+b (c-c m)) \, _2F_1\left (1,\frac{m+1}{2};\frac{m+3}{2};-\frac{b x^2}{a}\right )}{2 a^2 b (m+1)}+\frac{x^{m+1} (b c-a d)}{2 a b \left (a+b x^2\right )} \]

[Out]

((b*c - a*d)*x^(1 + m))/(2*a*b*(a + b*x^2)) + ((a*d*(1 + m) + b*(c - c*m))*x^(1
+ m)*Hypergeometric2F1[1, (1 + m)/2, (3 + m)/2, -((b*x^2)/a)])/(2*a^2*b*(1 + m))

_______________________________________________________________________________________

Rubi [A]  time = 0.121625, antiderivative size = 93, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.1 \[ \frac{x^{m+1} (a d (m+1)+b (c-c m)) \, _2F_1\left (1,\frac{m+1}{2};\frac{m+3}{2};-\frac{b x^2}{a}\right )}{2 a^2 b (m+1)}+\frac{x^{m+1} (b c-a d)}{2 a b \left (a+b x^2\right )} \]

Antiderivative was successfully verified.

[In]  Int[(x^m*(c + d*x^2))/(a + b*x^2)^2,x]

[Out]

((b*c - a*d)*x^(1 + m))/(2*a*b*(a + b*x^2)) + ((a*d*(1 + m) + b*(c - c*m))*x^(1
+ m)*Hypergeometric2F1[1, (1 + m)/2, (3 + m)/2, -((b*x^2)/a)])/(2*a^2*b*(1 + m))

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 14.8568, size = 71, normalized size = 0.76 \[ - \frac{x^{m + 1} \left (a d - b c\right )}{2 a b \left (a + b x^{2}\right )} + \frac{x^{m + 1} \left (a d \left (m + 1\right ) + b c \left (- m + 1\right )\right ){{}_{2}F_{1}\left (\begin{matrix} 1, \frac{m}{2} + \frac{1}{2} \\ \frac{m}{2} + \frac{3}{2} \end{matrix}\middle |{- \frac{b x^{2}}{a}} \right )}}{2 a^{2} b \left (m + 1\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(x**m*(d*x**2+c)/(b*x**2+a)**2,x)

[Out]

-x**(m + 1)*(a*d - b*c)/(2*a*b*(a + b*x**2)) + x**(m + 1)*(a*d*(m + 1) + b*c*(-m
 + 1))*hyper((1, m/2 + 1/2), (m/2 + 3/2,), -b*x**2/a)/(2*a**2*b*(m + 1))

_______________________________________________________________________________________

Mathematica [A]  time = 0.0722982, size = 80, normalized size = 0.86 \[ \frac{x^{m+1} \left ((b c-a d) \, _2F_1\left (2,\frac{m+1}{2};\frac{m+3}{2};-\frac{b x^2}{a}\right )+a d \, _2F_1\left (1,\frac{m+1}{2};\frac{m+3}{2};-\frac{b x^2}{a}\right )\right )}{a^2 b (m+1)} \]

Antiderivative was successfully verified.

[In]  Integrate[(x^m*(c + d*x^2))/(a + b*x^2)^2,x]

[Out]

(x^(1 + m)*(a*d*Hypergeometric2F1[1, (1 + m)/2, (3 + m)/2, -((b*x^2)/a)] + (b*c
- a*d)*Hypergeometric2F1[2, (1 + m)/2, (3 + m)/2, -((b*x^2)/a)]))/(a^2*b*(1 + m)
)

_______________________________________________________________________________________

Maple [F]  time = 0.056, size = 0, normalized size = 0. \[ \int{\frac{{x}^{m} \left ( d{x}^{2}+c \right ) }{ \left ( b{x}^{2}+a \right ) ^{2}}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(x^m*(d*x^2+c)/(b*x^2+a)^2,x)

[Out]

int(x^m*(d*x^2+c)/(b*x^2+a)^2,x)

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (d x^{2} + c\right )} x^{m}}{{\left (b x^{2} + a\right )}^{2}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((d*x^2 + c)*x^m/(b*x^2 + a)^2,x, algorithm="maxima")

[Out]

integrate((d*x^2 + c)*x^m/(b*x^2 + a)^2, x)

_______________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \[{\rm integral}\left (\frac{{\left (d x^{2} + c\right )} x^{m}}{b^{2} x^{4} + 2 \, a b x^{2} + a^{2}}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((d*x^2 + c)*x^m/(b*x^2 + a)^2,x, algorithm="fricas")

[Out]

integral((d*x^2 + c)*x^m/(b^2*x^4 + 2*a*b*x^2 + a^2), x)

_______________________________________________________________________________________

Sympy [A]  time = 137.2, size = 906, normalized size = 9.74 \[ \text{result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x**m*(d*x**2+c)/(b*x**2+a)**2,x)

[Out]

c*(-a*m**2*x*x**m*lerchphi(b*x**2*exp_polar(I*pi)/a, 1, m/2 + 1/2)*gamma(m/2 + 1
/2)/(8*a**3*gamma(m/2 + 3/2) + 8*a**2*b*x**2*gamma(m/2 + 3/2)) + 2*a*m*x*x**m*ga
mma(m/2 + 1/2)/(8*a**3*gamma(m/2 + 3/2) + 8*a**2*b*x**2*gamma(m/2 + 3/2)) + a*x*
x**m*lerchphi(b*x**2*exp_polar(I*pi)/a, 1, m/2 + 1/2)*gamma(m/2 + 1/2)/(8*a**3*g
amma(m/2 + 3/2) + 8*a**2*b*x**2*gamma(m/2 + 3/2)) + 2*a*x*x**m*gamma(m/2 + 1/2)/
(8*a**3*gamma(m/2 + 3/2) + 8*a**2*b*x**2*gamma(m/2 + 3/2)) - b*m**2*x**3*x**m*le
rchphi(b*x**2*exp_polar(I*pi)/a, 1, m/2 + 1/2)*gamma(m/2 + 1/2)/(8*a**3*gamma(m/
2 + 3/2) + 8*a**2*b*x**2*gamma(m/2 + 3/2)) + b*x**3*x**m*lerchphi(b*x**2*exp_pol
ar(I*pi)/a, 1, m/2 + 1/2)*gamma(m/2 + 1/2)/(8*a**3*gamma(m/2 + 3/2) + 8*a**2*b*x
**2*gamma(m/2 + 3/2))) + d*(-a*m**2*x**3*x**m*lerchphi(b*x**2*exp_polar(I*pi)/a,
 1, m/2 + 3/2)*gamma(m/2 + 3/2)/(8*a**3*gamma(m/2 + 5/2) + 8*a**2*b*x**2*gamma(m
/2 + 5/2)) - 4*a*m*x**3*x**m*lerchphi(b*x**2*exp_polar(I*pi)/a, 1, m/2 + 3/2)*ga
mma(m/2 + 3/2)/(8*a**3*gamma(m/2 + 5/2) + 8*a**2*b*x**2*gamma(m/2 + 5/2)) + 2*a*
m*x**3*x**m*gamma(m/2 + 3/2)/(8*a**3*gamma(m/2 + 5/2) + 8*a**2*b*x**2*gamma(m/2
+ 5/2)) - 3*a*x**3*x**m*lerchphi(b*x**2*exp_polar(I*pi)/a, 1, m/2 + 3/2)*gamma(m
/2 + 3/2)/(8*a**3*gamma(m/2 + 5/2) + 8*a**2*b*x**2*gamma(m/2 + 5/2)) + 6*a*x**3*
x**m*gamma(m/2 + 3/2)/(8*a**3*gamma(m/2 + 5/2) + 8*a**2*b*x**2*gamma(m/2 + 5/2))
 - b*m**2*x**5*x**m*lerchphi(b*x**2*exp_polar(I*pi)/a, 1, m/2 + 3/2)*gamma(m/2 +
 3/2)/(8*a**3*gamma(m/2 + 5/2) + 8*a**2*b*x**2*gamma(m/2 + 5/2)) - 4*b*m*x**5*x*
*m*lerchphi(b*x**2*exp_polar(I*pi)/a, 1, m/2 + 3/2)*gamma(m/2 + 3/2)/(8*a**3*gam
ma(m/2 + 5/2) + 8*a**2*b*x**2*gamma(m/2 + 5/2)) - 3*b*x**5*x**m*lerchphi(b*x**2*
exp_polar(I*pi)/a, 1, m/2 + 3/2)*gamma(m/2 + 3/2)/(8*a**3*gamma(m/2 + 5/2) + 8*a
**2*b*x**2*gamma(m/2 + 5/2)))

_______________________________________________________________________________________

GIAC/XCAS [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (d x^{2} + c\right )} x^{m}}{{\left (b x^{2} + a\right )}^{2}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((d*x^2 + c)*x^m/(b*x^2 + a)^2,x, algorithm="giac")

[Out]

integrate((d*x^2 + c)*x^m/(b*x^2 + a)^2, x)